'use strict';

var path = require('path');

var controller = {

};

controller.registerPath = function(router) {

    /*router.get('/index', function(req, res, next) {
        res.render('index', { title: '相片筛选' });
    });*/
    /* GET home page. */
    router.addPathGetHanlder('/', function(req, res, next) {
        res.sendFile(path.join(__dirname, '../views', 'index.html'));
    });

    router.addPathGetHanlder('/picturelist', function(req, res, next) {
        res.sendFile(path.join(__dirname, '../views', 'picturelist.html'));
    });

    router.addPathGetHanlder('/addpictureremark', function(req, res, next) {
        res.sendFile(path.join(__dirname, '../views', 'addpictureremark.html'));
    });
};

module.exports = controller;
